﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace VNSoft.Administrator
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (string.IsNullOrEmpty(Convert.ToString(Session["user"])))
                    Response.Redirect("Default.aspx");
                else
                    logout.Text = "Xin chào: " + Session["user"].ToString().ToUpper() + " - Đăng xuất";
            }
        }
        protected void logout_Click(object sender, EventArgs e)
        {
            Session.RemoveAll();
            Response.Redirect("Default.aspx");
        }
        protected void DoiMatKhau_Click(object sender, EventArgs e)
        {
            Response.Redirect("DoiMatKhau.aspx");
        }
    }
}